const install = (Vue, vm) => {
	// 我的项目
	let myProList = (params = {}) => vm.$u.post('/addons/chunyun/user/projectForUser', params);
	//登录
	let login = (params = {}) => vm.$u.post('/addons/chunyun/user/loginByMobile', params);
	// 更新用户信息
	let updataUserInfo = (params = {}) => vm.$u.post('/addons/chunyun/user/updateInfo', params);
	// 领取任务
	let pickTask = (params = {}) => vm.$u.post('/addons/chunyun/user/pickTask', params);
	// 金额明细
	let moneyRecord = (params = {}) => vm.$u.post('/addons/chunyun/withdrawal/getlist', params);
	// 提现
	let addInfo = (params = {}) => vm.$u.post('/addons/chunyun/withdrawal/addInfo', params);
	// 发送短信
	let send = (params = {}) => vm.$u.post('/addons/chunyun/sms/send', params);
	// 重置密码
	let resetpwd = (params = {}) => vm.$u.post('/addons/chunyun/user/resetpwd', params);
	// 弹窗判断
	let showTips = (params = {}) => vm.$u.post('/addons/chunyun/user/isTip', params);
	// 获取用户信息
	let getUserInfo = (params = {}) => vm.$u.post('/addons/chunyun/user/getUserInfo', params);
	// 项目列表
	let getProList = (params = {}) => vm.$u.post('/addons/chunyun/project/getList', params);
	// 项目详情
	let getInfoById = (params = {}) => vm.$u.post('/addons/chunyun/project/getInfoById', params);
	// 技能要求列表
	let getSkillList = (params = {}) => vm.$u.post('/addons/chunyun/position/getList', params);
	// 根据项目名称查找岗位
	let getListByProjectId = (params = {}) => vm.$u.post('/addons/chunyun/project_position/getListByProjectId', params);
	// 收藏/取消收藏
	let CollectionProject = (params = {}) => vm.$u.post('/addons/chunyun/collection/CollectionProject', params);
	// 已收藏项目
	let CollectionProjectList = (params = {}) => vm.$u.post('/addons/chunyun/collection/CollectionProjectList', params);
	// 获取银行卡列表
	let getBankCardList = (params = {}) => vm.$u.post('/addons/bankcard/bank/getList', params);
	// 绑定银行卡
	let addBankCardInfo = (params = {}) => vm.$u.post('/addons/bankcard/bank/addInfo', params);
	// 修改银行卡
	let editBankCardInfo = (params = {}) => vm.$u.post('/addons/bankcard/bank/editInfo', params);
	// 删除银行卡
	let delectBankCard = (params = {}) => vm.$u.post('/addons/bankcard/bank/del', params);
	// 获取银行卡详情
	let getBankCardInfo = (params = {}) => vm.$u.post('/addons/bankcard/bank/getInfo', params);
	// 获取电话
	let getConfigInfo = (params = {}) => vm.$u.post('/addons/chunyun/config/getConfig', params);
	// 轮播图
	let bannerList = (params = {}) => vm.$u.post('/addons/chunyun/config/bannerList', params);
	// 获取jssdk签名数据 
	let getSdkSign = (params = {}) => vm.$u.post('/addons/chunyun/wechat/getSdkSign', params);
	// 微信登录
	let loginByWeChatCode = (params = {}) => vm.$u.post('/addons/chunyun/user/loginByWeChatCode', params);
	// 手机号绑定
	let bindByMobeil = (params = {}) => vm.$u.post('/addons/chunyun/user/BindMobile', params);
	// 获取公众号
	let getConfigAdmin = (params = {}) => vm.$u.post('/addons/chunyun/config/getConfigAdmin', params);
	// 排行榜
	let getRanking = (params = {}) => vm.$u.post('/addons/chunyun/Leaderboard/UniversalLeaderboard', params)
	// 任务类型
	let getTask = (params = {}) => vm.$u.post('/addons/chunyun/project/getUserItemList', params)
	// 语言
	let getLanguage = (params = {}) => vm.$u.post('/addons/chunyun/project/getLangList', params)
	// 文字滚动
	let getText = (params = {}) => vm.$u.post('/addons/chunyun/withdrawal/getAutoList', params)
	// 工作时段
	let getHours = (params = {}) => vm.$u.post('/addons/chunyun/user/getUserWorkingHoursList', params)
	// 绑定微信
	let empowerWeChatCode = (params = {}) => vm.$u.post('/addons/chunyun/user/empowerWeChatCode', params)
	// 绑定支付宝
	let bandingAlipay = (params = {}) => vm.$u.post('/api/user/setAlipayData', params)
	// 获取支付宝
	let getAlipay = (params = {}) => vm.$u.post('/api/user/getAlipayData', params)
	// 修改手机号
	let setMobile = (params = {}) => vm.$u.post('/api/v1.user.set_mobile', params)
	// 修改手机号短信验证码
	let smsSend = (params = {}) => vm.$u.post('/api/v1.sms.send', params)
	// 取消竞标
	let taskCancel = (params = {}) => vm.$u.post('/api/v1.task.cancel', params)

	// 将各个定义的接口名称，统一放进对象挂载到vm.$u.api(因为vm就是this，也即this.$u.api)下
	vm.$u.api = {
		getAlipay,
		bandingAlipay,
		myProList,
		login,
		updataUserInfo,
		pickTask,
		moneyRecord,
		addInfo,
		send,
		resetpwd,
		getUserInfo,
		showTips,
		getProList,
		getInfoById,
		getSkillList,
		getListByProjectId,
		CollectionProject,
		CollectionProjectList,
		getBankCardList,
		addBankCardInfo,
		editBankCardInfo,
		delectBankCard,
		getBankCardInfo,
		getConfigInfo,
		bannerList,
		getSdkSign,
		loginByWeChatCode,
		bindByMobeil,
		getConfigAdmin,
		getRanking,
		getTask,
		getLanguage,
		getText,
		getHours,
		empowerWeChatCode,
		setMobile,
		smsSend,
		taskCancel
	};
}

export default {
	install
}
